<template>
  <div id="Mymanger">
    <tab>
      <tab-item selected>全部</tab-item>
      <tab-item>未预约</tab-item>
      <tab-item>已预约</tab-item>
    </tab>
    <div>
      <panel @on-click-item="update()" class="content" :list="list">
      </panel>
      <flexbox class="flex-border">
        <flexbox-item>
          <div class="flex-demo">
            <i slot="icon" class="iconfont icon-bianji-copy"></i>编辑
          </div>
        </flexbox-item>
        <flexbox-item>
          <div class="flex-demo">
            <i slot="icon" class="iconfont icon-shanchu"></i>删除
          </div>
        </flexbox-item>
        <flexbox-item>
          <div class="flex-demo">
            <i slot="icon" class="iconfont icon-jinyong"></i>禁用
          </div>
        </flexbox-item>
        <flexbox-item>
          <div class="flex-demo">
            <i slot="icon" class="iconfont icon-chaxun1"></i>二维码
          </div>
        </flexbox-item>
      </flexbox>
    </div>
    <x-button class="addroom" type="primary">添加会议室</x-button>
  </div>
</template>

<style lang='less'>
  #Mymanger {
    .flex-border {
      border: 1px solid #F3F3F3;
      text-align: center;
      .flex-demo {
        height: 3rem;
        line-height: 3rem;
        font-size: 1rem;
        color: #52627e;
      }
    }
    .content {
      .title {
        color: #52627e;
        span {
          font-size: 0.4rem;
          color: #52627e;
          margin-left: 0.4rem;
        }
      }
      p {
        color: #52627e;
      }
    }
    .addroom {
      margin: 0px auto;
      margin-top: 1rem;
      font-size: 1rem;
      height: 2.8rem;
      line-height: 2.8rem;
      width: 95%;
    }
  }
</style>

<script>
  import { Tab, TabItem, Panel, Flexbox, FlexboxItem, XButton } from "vux";

  export default {
    name: "Login",
    components: {
      Tab,
      TabItem,
      Panel,
      Flexbox,
      FlexboxItem,
      XButton
    },
    data() {
      return {
        list: [{
          src: 'http://placeholder.qiniudn.com/60x60/3cc51f/ffffff',
          title: '<p class="title">演示会议室<span>坐席20人</span></p>',
          desc: '<p>如何使用请查看会议预约教程</p><p>会议室地点:如何使用查看会议预约教程</p>',
          url: ''
        }]
      };
    },
    methods: {
      update() {
        this.$router.push({
          path: "/main/updatamanger"
        });
      }
    }
  };
</script>
